<?php
namespace app\index\controller;

use think\Controller;
use think\Db;
use think\facade\Request;

class Base extends Controller{

    public function initialize(){
        $cate = Db::name('category') -> where('is_menu',1) ->order('sort ASC,id DESC') ->select();
        $site = Db::name('system_setting') -> select();
        $viewData =[
        	'cate' => $cate,
            'site' => $site
        ];
        $this->view->share($viewData);
    }

}
